package edu.spec.wyn.week03.class2;

public class Test {
    public static void main(String[] args) {
        Student name1 = new Student("猪小明", "111", "11");
        Student name2 = new Student("毛台", "222", "22");
        Student name3 = new Student("蘑菇头", "333", "33");
        Student name4 = new Student("我", "444", "44", "19", "40");

        Student[] Name = new Student[4];
        Name[0] = name1;
        Name[1] = name2;
        Name[2] = name3;
        Name[3] = name4;

        for (Student a : Name)
        {
            System.out.println(a.name);
        }
    }
}
